package com.test.blibrary;

import android.app.Application;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

import androidx.appcompat.app.AppCompatActivity;

import com.google.auto.service.AutoService;
import com.test.aninterface.ApplicationUtils;
import com.test.aninterface.startIntent;

@AutoService(startIntent.class)
public class goBImp implements startIntent {
    @Override
    public void go(String name) {
            if(name.equals("b")){
                Intent in = new Intent(ApplicationUtils.getInstance().getContext(),BMainActivity.class);
                in.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                ApplicationUtils.getInstance().getContext().
                        startActivity(in);
            }
    }
}
